package org.nf.demo.entity;

import com.google.gson.Gson;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Author czl
 * @Date 2024-04-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private String name;
    private String sex;
    private int age;


    public String showInfo(){
        return new Gson().toJson(this);
    }

    public String sayHello(String name){
        return "hello," + name;
    }
}
